using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class WebShop : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            // Menu1.SetOrientation = Orientation.Vertical;           
            string head = "<title>"+ConfigurationManager.AppSettings["AppTitle"]+"</title>";
            string pathThemes = ResolveUrl("~/App_Themes");

            //if (int.Parse(System.DateTime.Now.Hour.ToString()) >= 6 && int.Parse(System.DateTime.Now.Hour.ToString()) < 12)
            //{
            //    head += "<link href='" + pathThemes + "/BlueSkin/BodyStyles.css' rel='stylesheet' type='text/css'/> ";
            //    head += "<link href='" + pathThemes + "/BlueSkin/ProductStyles.css' rel='stylesheet' type='text/css'/> ";
            //    head += "<link href='" + pathThemes + "/BlueSkin/MenuStyles.css' rel='stylesheet' type='text/css'/> ";
            //    head += "<link href='" + pathThemes + "/BlueSkin/RegisterStyles.css' rel='stylesheet' type='text/css'/> ";
            //    head += "<link href='" + pathThemes + "/BlueSkin/NewsStyles.css' rel='stylesheet' type='text/css'/> ";

            //}
            //else if (int.Parse(System.DateTime.Now.Hour.ToString()) >= 12 && int.Parse(System.DateTime.Now.Hour.ToString()) < 18)
            //{
            //    head += "<link href='" + pathThemes + "/GreenSkin/BodyStyles.css' rel='stylesheet' type='text/css'/> ";
            //    head += "<link href='" + pathThemes + "/GreenSkin/ProductStyles.css' rel='stylesheet' type='text/css'/> ";
            //    head += "<link href='" + pathThemes + "/GreenSkin/MenuStyles.css' rel='stylesheet' type='text/css'/> ";
            //    head += "<link href='" + pathThemes + "/GreenSkin/RegisterStyles.css' rel='stylesheet' type='text/css'/> ";
            //    head += "<link href='" + pathThemes + "/GreenSkin/NewsStyles.css' rel='stylesheet' type='text/css'/> ";

            //}
            //else
            //{
                head += "<link href='" + pathThemes + "/BlackSkin/BodyStyles.css' rel='stylesheet' type='text/css'/> ";
                head += "<link href='" + pathThemes + "/BlackSkin/ProductStyles.css' rel='stylesheet' type='text/css'/> ";
                head += "<link href='" + pathThemes + "/BlackSkin/MenuStyles.css' rel='stylesheet' type='text/css'/> ";
                head += "<link href='" + pathThemes + "/BlackSkin/RegisterStyles.css' rel='stylesheet' type='text/css'/> ";
                head += "<link href='" + pathThemes + "/BlackSkin/NewsStyles.css' rel='stylesheet' type='text/css'/> ";
            //}
            headMaster.InnerHtml = "";
            headMaster.InnerHtml = head;

        }
    }
}
